package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PinkoCurrencybasicfieldsMapper;
import com.ruoyi.system.domain.PinkoCurrencybasicfields;
import com.ruoyi.system.service.IPinkoCurrencybasicfieldsService;

/**
 * 币种基础字段Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-07
 */
@Service
public class PinkoCurrencybasicfieldsServiceImpl implements IPinkoCurrencybasicfieldsService 
{
    @Autowired
    private PinkoCurrencybasicfieldsMapper pinkoCurrencybasicfieldsMapper;

    /**
     * 查询币种基础字段
     * 
     * @param id 币种基础字段主键
     * @return 币种基础字段
     */
    @Override
    public PinkoCurrencybasicfields selectPinkoCurrencybasicfieldsById(Long id)
    {
        return pinkoCurrencybasicfieldsMapper.selectPinkoCurrencybasicfieldsById(id);
    }

    /**
     * 查询币种基础字段列表
     * 
     * @param pinkoCurrencybasicfields 币种基础字段
     * @return 币种基础字段
     */
    @Override
    public List<PinkoCurrencybasicfields> selectPinkoCurrencybasicfieldsList(PinkoCurrencybasicfields pinkoCurrencybasicfields)
    {
        return pinkoCurrencybasicfieldsMapper.selectPinkoCurrencybasicfieldsList(pinkoCurrencybasicfields);
    }

    /**
     * 新增币种基础字段
     * 
     * @param pinkoCurrencybasicfields 币种基础字段
     * @return 结果
     */
    @Override
    public int insertPinkoCurrencybasicfields(PinkoCurrencybasicfields pinkoCurrencybasicfields)
    {
        return pinkoCurrencybasicfieldsMapper.insertPinkoCurrencybasicfields(pinkoCurrencybasicfields);
    }

    /**
     * 修改币种基础字段
     * 
     * @param pinkoCurrencybasicfields 币种基础字段
     * @return 结果
     */
    @Override
    public int updatePinkoCurrencybasicfields(PinkoCurrencybasicfields pinkoCurrencybasicfields)
    {
        return pinkoCurrencybasicfieldsMapper.updatePinkoCurrencybasicfields(pinkoCurrencybasicfields);
    }

    /**
     * 批量删除币种基础字段
     * 
     * @param ids 需要删除的币种基础字段主键
     * @return 结果
     */
    @Override
    public int deletePinkoCurrencybasicfieldsByIds(Long[] ids)
    {
        return pinkoCurrencybasicfieldsMapper.deletePinkoCurrencybasicfieldsByIds(ids);
    }

    /**
     * 删除币种基础字段信息
     * 
     * @param id 币种基础字段主键
     * @return 结果
     */
    @Override
    public int deletePinkoCurrencybasicfieldsById(Long id)
    {
        return pinkoCurrencybasicfieldsMapper.deletePinkoCurrencybasicfieldsById(id);
    }
}
